/********************************************************************
 * Copyright(c) 2023-2023 Grayson Zheng.
 * File: bit.h
 * Description: 89C51/89C52 Bitwise operation Header file.
 * Version: 1.0
 * Date: 2023-07-20
 * Author: zhengxinyu13@qq.com
 * ---------- Revision History ----------
 * <version>
 * <date>
 * <author>
 * <desc>
 * Modified to be suitable to the new coding rules in all functions.
 ********************************************************************/
 
#ifndef __BIT_H__
#define __BIT_H__

#define HIGH		1
#define LOW			0
#define TRUE		1
#define FALSE		0
#define TURN_ON		1
#define TURN_OFF	0

#define SET_BIT(pin)	(pin) = 1
#define RESET_BIT(pin)	(pin) = 0

#define BIT(b) (1UL << (b))

#endif